import request from '@/utils/request'

// 查询二次服务类型列表
export function listSecondartservicetype(query) {
  return request({
    url: '/configuration/secondartservicetype/list',
    method: 'get',
    params: query
  })
}

// 查询二次服务类型详细
export function getSecondartservicetype(id) {
  return request({
    url: '/configuration/secondartservicetype/' + id,
    method: 'get'
  })
}

// 新增二次服务类型
export function addSecondartservicetype(data) {
  return request({
    url: '/configuration/secondartservicetype',
    method: 'post',
    data: data
  })
}

// 修改二次服务类型
export function updateSecondartservicetype(data) {
  return request({
    url: '/configuration/secondartservicetype',
    method: 'put',
    data: data
  })
}

// 删除二次服务类型
export function delSecondartservicetype(id) {
  return request({
    url: '/configuration/secondartservicetype/' + id,
    method: 'delete'
  })
}
